package com.ieheima.zuoye4;

import java.text.ParseException;
import java.time.LocalDateTime;
import java.util.Date;

public class Test {
    public static void main(String[] args) throws ParseException {
        Date date = DateUtils.stringToDate("2023-11-11 0:01:18");
        System.out.println(date);
        LocalDateTime localDateTime = LocalDateTime.now();
        DateUtils.date(localDateTime);
        System.out.println(localDateTime);
    }
}
